# 打印 1~ 20 的整数, 每行打印 5 个， 打印 四行, 如:
# 1 2 3 4 5
# 6 7 8 9 10
# ...
# 16 17 18 19 20
# # 提示: print()  换行

# 方法2
x = 1
while x <= 20:
    print('%2d' % x, end=' ')
    if x % 5 == 0:
        print()  # 换行
    x += 1
print()
# 课间休息： 10：15 回来



# 方法1
# x = 1
# while x <= 5:
#     print(x, end=' ')
#     x += 1
# print()
#
# x = 6
# while x <= 10:
#     print(x, end=' ')
#     x += 1
# print()
#
# x = 11
# while x <= 15:
#     print(x, end=' ')
#     x += 1
# print()
#
# x = 16
# while x <= 20:
#     print(x, end=' ')
#     x += 1
# print()